<definitions name ='weatherservice' xmlns='http://www.w3.org/2002/07/wsdl'>

   <service name='WeatherService' >

 

<port name='WeatherSoapPort'binding='wsdlns:WeatherSoapBinding' >

  <soap:addresslocation='http://localhost:8080/weather/weatherservice.jsp' />

</port>

 

<message name='Weather.getTemperature'>

  <part name='zipcode' type='xsd:string'/>

  <part name='celsius' type='xsd:boolean'/>

</message>

<message name='Weather.getTemperatureResponse'>

  <part name='Result' type='xsd:float'/>

</message>

 

< portType name='WeatherSoapPort'>

  <operation name='getTemperature' parameterOrder='zipcode celsius'>

       <input message='wsdlns:Weather.getTemperature' />

       <output message='wsdlns:Weather.getTemperatureResponse' />

  </operation>

  </portType>

 

<binding name='WeatherSoapBinding' type='wsdlns:WeatherSoapPort' >

    <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http' />

    <operation name='getTemperature' >

      <soap:operation soapAction='http://myService.com/action/Weather.getTemperature' />

      <input>

        <soap:body use='encoded' namespace='http://myService.com/message/'

         encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' />

      </input>

      <output>

        <soap:body use='encoded' namespace='http://myService.com/message/'

         encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' />

      </output>

    </operation>

  </binding>

 

   </service>

</definitions>